public class java1 {
    private String name;
    private String color;
    private String sex;
    private double weight;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    @Override
    public String toString() {
        return "java1{" +
                "姓名" + name + '\'' +
                ", 颜色'" + color + '\'' +
                ", 性别'" + sex + '\'' +
                ", 体重'" + weight + '\'' +
                '}';
    }
}
